﻿#pragma once
#include <QNetworkAccessManager>

enum MOETH_TYPE
{
    GET = 1,
    POST = 2
};

class http_manager
{
  public:
    QByteArray ssl_request(MOETH_TYPE moeth, QString url, QByteArray post_data = "");
    bool send_err(QString sn, QString content);
    QString get_ip_info();

  private:
    QByteArray ssl_request_process(MOETH_TYPE moeth, QString url, QByteArray post_data);

  private:
    QNetworkAccessManager m_manager;
};